package com.his.dao;

import java.util.List;

import com.his.dao.domain.ServerCategory;
import com.his.dao.domain.ServerProject;

/**
 * 服务费用dao
 * @author sahala
 *
 */
public interface ServerFeeDAO {
	
	public boolean saveServerCategory(ServerCategory sc);
	
	public boolean updateServerCategory(ServerCategory sc);
	
	public boolean saveServerProject(ServerProject sp);
	
	public boolean updateServerProject(ServerProject sp);
	
	public List<ServerCategory> queryAllRootCategory(boolean needSub);
	
	public List<ServerCategory> queryCategoryByParentId(int parendId);
	
	public List<ServerProject> queryProjectByCategoryId(int categoryId);
	
	public boolean deleteProjectByCategoryId(int categoryId);
	
	public boolean deleteProjectById(int projectId);
	
	public boolean deleteCategoryByParentId(int parentId);
	
	public boolean deleteCategoryById(int categoryId);
	
	
}
